const mongoose = require("mongoose");
const Schema = mongoose.Schema;

//定义数据结构
const DataSchema = new Schema(
	{
		id: Number,
		message: String
	},
	{ timestamps: true }
);

//返回Schema,便于通过node.js使用

module.exports = mongoose.model("Data", DataSchema);